package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 差异表
 * @author pc
 *
 */
public class DiffBean {

	private String order_diff_id;
	private String kehu_company;
	private String item_name;
	private String val_names;
	private String unit;
	private String diff_num;
	private String diff_type;
	
	public DiffBean() {
		
	} 
    public DiffBean(Map<String, Object> map) {
    	if (!(map.get("order_diff_id") == null || map.get("order_diff_id").equals(""))) {
    		this.order_diff_id = map.get("order_diff_id").toString();
		}
    	if (!(map.get("kehu_company") == null || map.get("kehu_company").equals(""))) {
    		this.kehu_company = map.get("kehu_company").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("diff_num") == null || map.get("diff_num").equals(""))) {
    		this.diff_num = map.get("diff_num").toString();
		}
    	if (!(map.get("diff_type") == null || map.get("diff_type").equals(""))) {
    		this.diff_type = map.get("diff_type").toString();
		}
	} 
	
    public static List<DiffBean> getBean(List<Map<String, Object>> list) {
		List<DiffBean> diffBeans = null;
		if (list != null && list.size() > 0) {
			diffBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				diffBeans.add(new DiffBean(map));
			}
		}
		return diffBeans;
	}
    
	public String getOrder_diff_id() {
		return order_diff_id;
	}
	public void setOrder_diff_id(String order_diff_id) {
		this.order_diff_id = order_diff_id;
	}
	public String getKehu_company() {
		return kehu_company;
	}
	public void setKehu_company(String kehu_company) {
		this.kehu_company = kehu_company;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getDiff_num() {
		return diff_num;
	}
	public void setDiff_num(String diff_num) {
		this.diff_num = diff_num;
	}
	public String getDiff_type() {
		return diff_type;
	}
	public void setDiff_type(String diff_type) {
		this.diff_type = diff_type;
	}
	
}
